package com.example.sunnyweather.logic.model

import com.google.gson.annotations.SerializedName

data class PlaceResponse (val status:String,val places:List<Place>) {

    //由于json中一些字段与kotlin的命名规则不太一致，所以使用注解来建立映射
    data class Place(
        val name: String, val location: Location,
        @SerializedName("formatted_address") val address: String
    )

    data class Location(val lng: String, val lat: String)
}